package com.slipper.system.log;

import javax.annotation.Resource;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;

import com.slipper.system.api.log.bo.LoginLogBO;
import com.slipper.system.api.log.bo.OperatorLogBO;
import com.slipper.system.api.log.service.ILoginLogSv;
import com.slipper.system.api.log.service.IOperatorLogSv;

@Component
@EnableAsync
public class LogAsyncService {
    @Resource
    private ILoginLogSv loginLogSv;
    @Resource
    private IOperatorLogSv operatorLogSv;
    
    @Async
    public void saveLoginLog(LoginLogBO bo) {
        this.loginLogSv.save(bo);
    }
    
    @Async
    public void saveOperatorLog(OperatorLogBO bo) {
        this.operatorLogSv.save(bo);
    }
}
